/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.mapfinal.portal.model.sql;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author yangyong 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2019-05-23
 * @version 1.0
 * @since 1.0
 */
public class MenuCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static MenuCriteria create() {
		return new MenuCriteria();
	}
	
	public static MenuCriteria create(Column column) {
		MenuCriteria that = new MenuCriteria();
		that.add(column);
        return that;
    }

    public static MenuCriteria create(String name, Object value) {
        return (MenuCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("cms_menu", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public MenuCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public MenuCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public MenuCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public MenuCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public MenuCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public MenuCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public MenuCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public MenuCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public MenuCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public MenuCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public MenuCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public MenuCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public MenuCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public MenuCriteria andIdIsNull() {
		isnull("id");
		return this;
	}
	
	public MenuCriteria andIdIsNotNull() {
		notNull("id");
		return this;
	}
	
	public MenuCriteria andIdIsEmpty() {
		empty("id");
		return this;
	}

	public MenuCriteria andIdIsNotEmpty() {
		notEmpty("id");
		return this;
	}
       public MenuCriteria andIdEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andIdNotEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.NOT_EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andIdGreaterThan(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.GREATER_THEN, "id", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.GREATER_EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andIdLessThan(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.LESS_THEN, "id", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.LESS_EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("id", value1, value2, ConditionMode.BETWEEN, "id", "java.lang.Long", "Float");
    	  return this;
      }

      public MenuCriteria andIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("id", value1, value2, ConditionMode.NOT_BETWEEN, "id", "java.lang.Long", "Float");
          return this;
      }
        
      public MenuCriteria andIdIn(List<java.lang.Long> values) {
          addCriterion("id", values, ConditionMode.IN, "id", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andIdNotIn(List<java.lang.Long> values) {
          addCriterion("id", values, ConditionMode.NOT_IN, "id", "java.lang.Long", "Float");
          return this;
      }
	public MenuCriteria andCidIsNull() {
		isnull("cid");
		return this;
	}
	
	public MenuCriteria andCidIsNotNull() {
		notNull("cid");
		return this;
	}
	
	public MenuCriteria andCidIsEmpty() {
		empty("cid");
		return this;
	}

	public MenuCriteria andCidIsNotEmpty() {
		notEmpty("cid");
		return this;
	}
       public MenuCriteria andCidEqualTo(java.lang.Long value) {
          addCriterion("cid", value, ConditionMode.EQUAL, "cid", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andCidNotEqualTo(java.lang.Long value) {
          addCriterion("cid", value, ConditionMode.NOT_EQUAL, "cid", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andCidGreaterThan(java.lang.Long value) {
          addCriterion("cid", value, ConditionMode.GREATER_THEN, "cid", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andCidGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("cid", value, ConditionMode.GREATER_EQUAL, "cid", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andCidLessThan(java.lang.Long value) {
          addCriterion("cid", value, ConditionMode.LESS_THEN, "cid", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andCidLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("cid", value, ConditionMode.LESS_EQUAL, "cid", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andCidBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("cid", value1, value2, ConditionMode.BETWEEN, "cid", "java.lang.Long", "Float");
    	  return this;
      }

      public MenuCriteria andCidNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("cid", value1, value2, ConditionMode.NOT_BETWEEN, "cid", "java.lang.Long", "Float");
          return this;
      }
        
      public MenuCriteria andCidIn(List<java.lang.Long> values) {
          addCriterion("cid", values, ConditionMode.IN, "cid", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andCidNotIn(List<java.lang.Long> values) {
          addCriterion("cid", values, ConditionMode.NOT_IN, "cid", "java.lang.Long", "Float");
          return this;
      }
	public MenuCriteria andPidIsNull() {
		isnull("pid");
		return this;
	}
	
	public MenuCriteria andPidIsNotNull() {
		notNull("pid");
		return this;
	}
	
	public MenuCriteria andPidIsEmpty() {
		empty("pid");
		return this;
	}

	public MenuCriteria andPidIsNotEmpty() {
		notEmpty("pid");
		return this;
	}
       public MenuCriteria andPidEqualTo(java.lang.Long value) {
          addCriterion("pid", value, ConditionMode.EQUAL, "pid", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andPidNotEqualTo(java.lang.Long value) {
          addCriterion("pid", value, ConditionMode.NOT_EQUAL, "pid", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andPidGreaterThan(java.lang.Long value) {
          addCriterion("pid", value, ConditionMode.GREATER_THEN, "pid", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andPidGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("pid", value, ConditionMode.GREATER_EQUAL, "pid", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andPidLessThan(java.lang.Long value) {
          addCriterion("pid", value, ConditionMode.LESS_THEN, "pid", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andPidLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("pid", value, ConditionMode.LESS_EQUAL, "pid", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andPidBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("pid", value1, value2, ConditionMode.BETWEEN, "pid", "java.lang.Long", "Float");
    	  return this;
      }

      public MenuCriteria andPidNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("pid", value1, value2, ConditionMode.NOT_BETWEEN, "pid", "java.lang.Long", "Float");
          return this;
      }
        
      public MenuCriteria andPidIn(List<java.lang.Long> values) {
          addCriterion("pid", values, ConditionMode.IN, "pid", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andPidNotIn(List<java.lang.Long> values) {
          addCriterion("pid", values, ConditionMode.NOT_IN, "pid", "java.lang.Long", "Float");
          return this;
      }
	public MenuCriteria andTextIsNull() {
		isnull("text");
		return this;
	}
	
	public MenuCriteria andTextIsNotNull() {
		notNull("text");
		return this;
	}
	
	public MenuCriteria andTextIsEmpty() {
		empty("text");
		return this;
	}

	public MenuCriteria andTextIsNotEmpty() {
		notEmpty("text");
		return this;
	}
        public MenuCriteria andTextLike(java.lang.String value) {
    	   addCriterion("text", value, ConditionMode.FUZZY, "text", "java.lang.String", "Float");
    	   return this;
      }

      public MenuCriteria andTextNotLike(java.lang.String value) {
          addCriterion("text", value, ConditionMode.NOT_FUZZY, "text", "java.lang.String", "Float");
          return this;
      }
      public MenuCriteria andTextEqualTo(java.lang.String value) {
          addCriterion("text", value, ConditionMode.EQUAL, "text", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTextNotEqualTo(java.lang.String value) {
          addCriterion("text", value, ConditionMode.NOT_EQUAL, "text", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTextGreaterThan(java.lang.String value) {
          addCriterion("text", value, ConditionMode.GREATER_THEN, "text", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTextGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("text", value, ConditionMode.GREATER_EQUAL, "text", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTextLessThan(java.lang.String value) {
          addCriterion("text", value, ConditionMode.LESS_THEN, "text", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTextLessThanOrEqualTo(java.lang.String value) {
          addCriterion("text", value, ConditionMode.LESS_EQUAL, "text", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTextBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("text", value1, value2, ConditionMode.BETWEEN, "text", "java.lang.String", "String");
    	  return this;
      }

      public MenuCriteria andTextNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("text", value1, value2, ConditionMode.NOT_BETWEEN, "text", "java.lang.String", "String");
          return this;
      }
        
      public MenuCriteria andTextIn(List<java.lang.String> values) {
          addCriterion("text", values, ConditionMode.IN, "text", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTextNotIn(List<java.lang.String> values) {
          addCriterion("text", values, ConditionMode.NOT_IN, "text", "java.lang.String", "String");
          return this;
      }
	public MenuCriteria andUrlIsNull() {
		isnull("url");
		return this;
	}
	
	public MenuCriteria andUrlIsNotNull() {
		notNull("url");
		return this;
	}
	
	public MenuCriteria andUrlIsEmpty() {
		empty("url");
		return this;
	}

	public MenuCriteria andUrlIsNotEmpty() {
		notEmpty("url");
		return this;
	}
        public MenuCriteria andUrlLike(java.lang.String value) {
    	   addCriterion("url", value, ConditionMode.FUZZY, "url", "java.lang.String", "String");
    	   return this;
      }

      public MenuCriteria andUrlNotLike(java.lang.String value) {
          addCriterion("url", value, ConditionMode.NOT_FUZZY, "url", "java.lang.String", "String");
          return this;
      }
      public MenuCriteria andUrlEqualTo(java.lang.String value) {
          addCriterion("url", value, ConditionMode.EQUAL, "url", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andUrlNotEqualTo(java.lang.String value) {
          addCriterion("url", value, ConditionMode.NOT_EQUAL, "url", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andUrlGreaterThan(java.lang.String value) {
          addCriterion("url", value, ConditionMode.GREATER_THEN, "url", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andUrlGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("url", value, ConditionMode.GREATER_EQUAL, "url", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andUrlLessThan(java.lang.String value) {
          addCriterion("url", value, ConditionMode.LESS_THEN, "url", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andUrlLessThanOrEqualTo(java.lang.String value) {
          addCriterion("url", value, ConditionMode.LESS_EQUAL, "url", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andUrlBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("url", value1, value2, ConditionMode.BETWEEN, "url", "java.lang.String", "String");
    	  return this;
      }

      public MenuCriteria andUrlNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("url", value1, value2, ConditionMode.NOT_BETWEEN, "url", "java.lang.String", "String");
          return this;
      }
        
      public MenuCriteria andUrlIn(List<java.lang.String> values) {
          addCriterion("url", values, ConditionMode.IN, "url", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andUrlNotIn(List<java.lang.String> values) {
          addCriterion("url", values, ConditionMode.NOT_IN, "url", "java.lang.String", "String");
          return this;
      }
	public MenuCriteria andTargetIsNull() {
		isnull("target");
		return this;
	}
	
	public MenuCriteria andTargetIsNotNull() {
		notNull("target");
		return this;
	}
	
	public MenuCriteria andTargetIsEmpty() {
		empty("target");
		return this;
	}

	public MenuCriteria andTargetIsNotEmpty() {
		notEmpty("target");
		return this;
	}
        public MenuCriteria andTargetLike(java.lang.String value) {
    	   addCriterion("target", value, ConditionMode.FUZZY, "target", "java.lang.String", "String");
    	   return this;
      }

      public MenuCriteria andTargetNotLike(java.lang.String value) {
          addCriterion("target", value, ConditionMode.NOT_FUZZY, "target", "java.lang.String", "String");
          return this;
      }
      public MenuCriteria andTargetEqualTo(java.lang.String value) {
          addCriterion("target", value, ConditionMode.EQUAL, "target", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTargetNotEqualTo(java.lang.String value) {
          addCriterion("target", value, ConditionMode.NOT_EQUAL, "target", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTargetGreaterThan(java.lang.String value) {
          addCriterion("target", value, ConditionMode.GREATER_THEN, "target", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTargetGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("target", value, ConditionMode.GREATER_EQUAL, "target", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTargetLessThan(java.lang.String value) {
          addCriterion("target", value, ConditionMode.LESS_THEN, "target", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTargetLessThanOrEqualTo(java.lang.String value) {
          addCriterion("target", value, ConditionMode.LESS_EQUAL, "target", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTargetBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("target", value1, value2, ConditionMode.BETWEEN, "target", "java.lang.String", "String");
    	  return this;
      }

      public MenuCriteria andTargetNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("target", value1, value2, ConditionMode.NOT_BETWEEN, "target", "java.lang.String", "String");
          return this;
      }
        
      public MenuCriteria andTargetIn(List<java.lang.String> values) {
          addCriterion("target", values, ConditionMode.IN, "target", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTargetNotIn(List<java.lang.String> values) {
          addCriterion("target", values, ConditionMode.NOT_IN, "target", "java.lang.String", "String");
          return this;
      }
	public MenuCriteria andIconIsNull() {
		isnull("icon");
		return this;
	}
	
	public MenuCriteria andIconIsNotNull() {
		notNull("icon");
		return this;
	}
	
	public MenuCriteria andIconIsEmpty() {
		empty("icon");
		return this;
	}

	public MenuCriteria andIconIsNotEmpty() {
		notEmpty("icon");
		return this;
	}
        public MenuCriteria andIconLike(java.lang.String value) {
    	   addCriterion("icon", value, ConditionMode.FUZZY, "icon", "java.lang.String", "String");
    	   return this;
      }

      public MenuCriteria andIconNotLike(java.lang.String value) {
          addCriterion("icon", value, ConditionMode.NOT_FUZZY, "icon", "java.lang.String", "String");
          return this;
      }
      public MenuCriteria andIconEqualTo(java.lang.String value) {
          addCriterion("icon", value, ConditionMode.EQUAL, "icon", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andIconNotEqualTo(java.lang.String value) {
          addCriterion("icon", value, ConditionMode.NOT_EQUAL, "icon", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andIconGreaterThan(java.lang.String value) {
          addCriterion("icon", value, ConditionMode.GREATER_THEN, "icon", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andIconGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("icon", value, ConditionMode.GREATER_EQUAL, "icon", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andIconLessThan(java.lang.String value) {
          addCriterion("icon", value, ConditionMode.LESS_THEN, "icon", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andIconLessThanOrEqualTo(java.lang.String value) {
          addCriterion("icon", value, ConditionMode.LESS_EQUAL, "icon", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andIconBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("icon", value1, value2, ConditionMode.BETWEEN, "icon", "java.lang.String", "String");
    	  return this;
      }

      public MenuCriteria andIconNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("icon", value1, value2, ConditionMode.NOT_BETWEEN, "icon", "java.lang.String", "String");
          return this;
      }
        
      public MenuCriteria andIconIn(List<java.lang.String> values) {
          addCriterion("icon", values, ConditionMode.IN, "icon", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andIconNotIn(List<java.lang.String> values) {
          addCriterion("icon", values, ConditionMode.NOT_IN, "icon", "java.lang.String", "String");
          return this;
      }
	public MenuCriteria andFlagIsNull() {
		isnull("flag");
		return this;
	}
	
	public MenuCriteria andFlagIsNotNull() {
		notNull("flag");
		return this;
	}
	
	public MenuCriteria andFlagIsEmpty() {
		empty("flag");
		return this;
	}

	public MenuCriteria andFlagIsNotEmpty() {
		notEmpty("flag");
		return this;
	}
        public MenuCriteria andFlagLike(java.lang.String value) {
    	   addCriterion("flag", value, ConditionMode.FUZZY, "flag", "java.lang.String", "String");
    	   return this;
      }

      public MenuCriteria andFlagNotLike(java.lang.String value) {
          addCriterion("flag", value, ConditionMode.NOT_FUZZY, "flag", "java.lang.String", "String");
          return this;
      }
      public MenuCriteria andFlagEqualTo(java.lang.String value) {
          addCriterion("flag", value, ConditionMode.EQUAL, "flag", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andFlagNotEqualTo(java.lang.String value) {
          addCriterion("flag", value, ConditionMode.NOT_EQUAL, "flag", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andFlagGreaterThan(java.lang.String value) {
          addCriterion("flag", value, ConditionMode.GREATER_THEN, "flag", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andFlagGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("flag", value, ConditionMode.GREATER_EQUAL, "flag", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andFlagLessThan(java.lang.String value) {
          addCriterion("flag", value, ConditionMode.LESS_THEN, "flag", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andFlagLessThanOrEqualTo(java.lang.String value) {
          addCriterion("flag", value, ConditionMode.LESS_EQUAL, "flag", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andFlagBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("flag", value1, value2, ConditionMode.BETWEEN, "flag", "java.lang.String", "String");
    	  return this;
      }

      public MenuCriteria andFlagNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("flag", value1, value2, ConditionMode.NOT_BETWEEN, "flag", "java.lang.String", "String");
          return this;
      }
        
      public MenuCriteria andFlagIn(List<java.lang.String> values) {
          addCriterion("flag", values, ConditionMode.IN, "flag", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andFlagNotIn(List<java.lang.String> values) {
          addCriterion("flag", values, ConditionMode.NOT_IN, "flag", "java.lang.String", "String");
          return this;
      }
	public MenuCriteria andTypeIsNull() {
		isnull("type");
		return this;
	}
	
	public MenuCriteria andTypeIsNotNull() {
		notNull("type");
		return this;
	}
	
	public MenuCriteria andTypeIsEmpty() {
		empty("type");
		return this;
	}

	public MenuCriteria andTypeIsNotEmpty() {
		notEmpty("type");
		return this;
	}
        public MenuCriteria andTypeLike(java.lang.String value) {
    	   addCriterion("type", value, ConditionMode.FUZZY, "type", "java.lang.String", "String");
    	   return this;
      }

      public MenuCriteria andTypeNotLike(java.lang.String value) {
          addCriterion("type", value, ConditionMode.NOT_FUZZY, "type", "java.lang.String", "String");
          return this;
      }
      public MenuCriteria andTypeEqualTo(java.lang.String value) {
          addCriterion("type", value, ConditionMode.EQUAL, "type", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTypeNotEqualTo(java.lang.String value) {
          addCriterion("type", value, ConditionMode.NOT_EQUAL, "type", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTypeGreaterThan(java.lang.String value) {
          addCriterion("type", value, ConditionMode.GREATER_THEN, "type", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTypeGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("type", value, ConditionMode.GREATER_EQUAL, "type", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTypeLessThan(java.lang.String value) {
          addCriterion("type", value, ConditionMode.LESS_THEN, "type", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTypeLessThanOrEqualTo(java.lang.String value) {
          addCriterion("type", value, ConditionMode.LESS_EQUAL, "type", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTypeBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("type", value1, value2, ConditionMode.BETWEEN, "type", "java.lang.String", "String");
    	  return this;
      }

      public MenuCriteria andTypeNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("type", value1, value2, ConditionMode.NOT_BETWEEN, "type", "java.lang.String", "String");
          return this;
      }
        
      public MenuCriteria andTypeIn(List<java.lang.String> values) {
          addCriterion("type", values, ConditionMode.IN, "type", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andTypeNotIn(List<java.lang.String> values) {
          addCriterion("type", values, ConditionMode.NOT_IN, "type", "java.lang.String", "String");
          return this;
      }
	public MenuCriteria andOrderNumberIsNull() {
		isnull("order_number");
		return this;
	}
	
	public MenuCriteria andOrderNumberIsNotNull() {
		notNull("order_number");
		return this;
	}
	
	public MenuCriteria andOrderNumberIsEmpty() {
		empty("order_number");
		return this;
	}

	public MenuCriteria andOrderNumberIsNotEmpty() {
		notEmpty("order_number");
		return this;
	}
       public MenuCriteria andOrderNumberEqualTo(java.lang.Integer value) {
          addCriterion("order_number", value, ConditionMode.EQUAL, "orderNumber", "java.lang.Integer", "Float");
          return this;
      }

      public MenuCriteria andOrderNumberNotEqualTo(java.lang.Integer value) {
          addCriterion("order_number", value, ConditionMode.NOT_EQUAL, "orderNumber", "java.lang.Integer", "Float");
          return this;
      }

      public MenuCriteria andOrderNumberGreaterThan(java.lang.Integer value) {
          addCriterion("order_number", value, ConditionMode.GREATER_THEN, "orderNumber", "java.lang.Integer", "Float");
          return this;
      }

      public MenuCriteria andOrderNumberGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("order_number", value, ConditionMode.GREATER_EQUAL, "orderNumber", "java.lang.Integer", "Float");
          return this;
      }

      public MenuCriteria andOrderNumberLessThan(java.lang.Integer value) {
          addCriterion("order_number", value, ConditionMode.LESS_THEN, "orderNumber", "java.lang.Integer", "Float");
          return this;
      }

      public MenuCriteria andOrderNumberLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("order_number", value, ConditionMode.LESS_EQUAL, "orderNumber", "java.lang.Integer", "Float");
          return this;
      }

      public MenuCriteria andOrderNumberBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("order_number", value1, value2, ConditionMode.BETWEEN, "orderNumber", "java.lang.Integer", "Float");
    	  return this;
      }

      public MenuCriteria andOrderNumberNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("order_number", value1, value2, ConditionMode.NOT_BETWEEN, "orderNumber", "java.lang.Integer", "Float");
          return this;
      }
        
      public MenuCriteria andOrderNumberIn(List<java.lang.Integer> values) {
          addCriterion("order_number", values, ConditionMode.IN, "orderNumber", "java.lang.Integer", "Float");
          return this;
      }

      public MenuCriteria andOrderNumberNotIn(List<java.lang.Integer> values) {
          addCriterion("order_number", values, ConditionMode.NOT_IN, "orderNumber", "java.lang.Integer", "Float");
          return this;
      }
	public MenuCriteria andRelativeTableIsNull() {
		isnull("relative_table");
		return this;
	}
	
	public MenuCriteria andRelativeTableIsNotNull() {
		notNull("relative_table");
		return this;
	}
	
	public MenuCriteria andRelativeTableIsEmpty() {
		empty("relative_table");
		return this;
	}

	public MenuCriteria andRelativeTableIsNotEmpty() {
		notEmpty("relative_table");
		return this;
	}
        public MenuCriteria andRelativeTableLike(java.lang.String value) {
    	   addCriterion("relative_table", value, ConditionMode.FUZZY, "relativeTable", "java.lang.String", "Float");
    	   return this;
      }

      public MenuCriteria andRelativeTableNotLike(java.lang.String value) {
          addCriterion("relative_table", value, ConditionMode.NOT_FUZZY, "relativeTable", "java.lang.String", "Float");
          return this;
      }
      public MenuCriteria andRelativeTableEqualTo(java.lang.String value) {
          addCriterion("relative_table", value, ConditionMode.EQUAL, "relativeTable", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andRelativeTableNotEqualTo(java.lang.String value) {
          addCriterion("relative_table", value, ConditionMode.NOT_EQUAL, "relativeTable", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andRelativeTableGreaterThan(java.lang.String value) {
          addCriterion("relative_table", value, ConditionMode.GREATER_THEN, "relativeTable", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andRelativeTableGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("relative_table", value, ConditionMode.GREATER_EQUAL, "relativeTable", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andRelativeTableLessThan(java.lang.String value) {
          addCriterion("relative_table", value, ConditionMode.LESS_THEN, "relativeTable", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andRelativeTableLessThanOrEqualTo(java.lang.String value) {
          addCriterion("relative_table", value, ConditionMode.LESS_EQUAL, "relativeTable", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andRelativeTableBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("relative_table", value1, value2, ConditionMode.BETWEEN, "relativeTable", "java.lang.String", "String");
    	  return this;
      }

      public MenuCriteria andRelativeTableNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("relative_table", value1, value2, ConditionMode.NOT_BETWEEN, "relativeTable", "java.lang.String", "String");
          return this;
      }
        
      public MenuCriteria andRelativeTableIn(List<java.lang.String> values) {
          addCriterion("relative_table", values, ConditionMode.IN, "relativeTable", "java.lang.String", "String");
          return this;
      }

      public MenuCriteria andRelativeTableNotIn(List<java.lang.String> values) {
          addCriterion("relative_table", values, ConditionMode.NOT_IN, "relativeTable", "java.lang.String", "String");
          return this;
      }
	public MenuCriteria andRelativeIdIsNull() {
		isnull("relative_id");
		return this;
	}
	
	public MenuCriteria andRelativeIdIsNotNull() {
		notNull("relative_id");
		return this;
	}
	
	public MenuCriteria andRelativeIdIsEmpty() {
		empty("relative_id");
		return this;
	}

	public MenuCriteria andRelativeIdIsNotEmpty() {
		notEmpty("relative_id");
		return this;
	}
       public MenuCriteria andRelativeIdEqualTo(java.lang.Long value) {
          addCriterion("relative_id", value, ConditionMode.EQUAL, "relativeId", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andRelativeIdNotEqualTo(java.lang.Long value) {
          addCriterion("relative_id", value, ConditionMode.NOT_EQUAL, "relativeId", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andRelativeIdGreaterThan(java.lang.Long value) {
          addCriterion("relative_id", value, ConditionMode.GREATER_THEN, "relativeId", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andRelativeIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("relative_id", value, ConditionMode.GREATER_EQUAL, "relativeId", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andRelativeIdLessThan(java.lang.Long value) {
          addCriterion("relative_id", value, ConditionMode.LESS_THEN, "relativeId", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andRelativeIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("relative_id", value, ConditionMode.LESS_EQUAL, "relativeId", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andRelativeIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("relative_id", value1, value2, ConditionMode.BETWEEN, "relativeId", "java.lang.Long", "Float");
    	  return this;
      }

      public MenuCriteria andRelativeIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("relative_id", value1, value2, ConditionMode.NOT_BETWEEN, "relativeId", "java.lang.Long", "Float");
          return this;
      }
        
      public MenuCriteria andRelativeIdIn(List<java.lang.Long> values) {
          addCriterion("relative_id", values, ConditionMode.IN, "relativeId", "java.lang.Long", "Float");
          return this;
      }

      public MenuCriteria andRelativeIdNotIn(List<java.lang.Long> values) {
          addCriterion("relative_id", values, ConditionMode.NOT_IN, "relativeId", "java.lang.Long", "Float");
          return this;
      }
	public MenuCriteria andCreatedIsNull() {
		isnull("created");
		return this;
	}
	
	public MenuCriteria andCreatedIsNotNull() {
		notNull("created");
		return this;
	}
	
	public MenuCriteria andCreatedIsEmpty() {
		empty("created");
		return this;
	}

	public MenuCriteria andCreatedIsNotEmpty() {
		notEmpty("created");
		return this;
	}
       public MenuCriteria andCreatedEqualTo(java.util.Date value) {
          addCriterion("created", value, ConditionMode.EQUAL, "created", "java.util.Date", "String");
          return this;
      }

      public MenuCriteria andCreatedNotEqualTo(java.util.Date value) {
          addCriterion("created", value, ConditionMode.NOT_EQUAL, "created", "java.util.Date", "String");
          return this;
      }

      public MenuCriteria andCreatedGreaterThan(java.util.Date value) {
          addCriterion("created", value, ConditionMode.GREATER_THEN, "created", "java.util.Date", "String");
          return this;
      }

      public MenuCriteria andCreatedGreaterThanOrEqualTo(java.util.Date value) {
          addCriterion("created", value, ConditionMode.GREATER_EQUAL, "created", "java.util.Date", "String");
          return this;
      }

      public MenuCriteria andCreatedLessThan(java.util.Date value) {
          addCriterion("created", value, ConditionMode.LESS_THEN, "created", "java.util.Date", "String");
          return this;
      }

      public MenuCriteria andCreatedLessThanOrEqualTo(java.util.Date value) {
          addCriterion("created", value, ConditionMode.LESS_EQUAL, "created", "java.util.Date", "String");
          return this;
      }

      public MenuCriteria andCreatedBetween(java.util.Date value1, java.util.Date value2) {
    	  addCriterion("created", value1, value2, ConditionMode.BETWEEN, "created", "java.util.Date", "String");
    	  return this;
      }

      public MenuCriteria andCreatedNotBetween(java.util.Date value1, java.util.Date value2) {
          addCriterion("created", value1, value2, ConditionMode.NOT_BETWEEN, "created", "java.util.Date", "String");
          return this;
      }
        
      public MenuCriteria andCreatedIn(List<java.util.Date> values) {
          addCriterion("created", values, ConditionMode.IN, "created", "java.util.Date", "String");
          return this;
      }

      public MenuCriteria andCreatedNotIn(List<java.util.Date> values) {
          addCriterion("created", values, ConditionMode.NOT_IN, "created", "java.util.Date", "String");
          return this;
      }
	public MenuCriteria andModifiedIsNull() {
		isnull("modified");
		return this;
	}
	
	public MenuCriteria andModifiedIsNotNull() {
		notNull("modified");
		return this;
	}
	
	public MenuCriteria andModifiedIsEmpty() {
		empty("modified");
		return this;
	}

	public MenuCriteria andModifiedIsNotEmpty() {
		notEmpty("modified");
		return this;
	}
       public MenuCriteria andModifiedEqualTo(java.util.Date value) {
          addCriterion("modified", value, ConditionMode.EQUAL, "modified", "java.util.Date", "String");
          return this;
      }

      public MenuCriteria andModifiedNotEqualTo(java.util.Date value) {
          addCriterion("modified", value, ConditionMode.NOT_EQUAL, "modified", "java.util.Date", "String");
          return this;
      }

      public MenuCriteria andModifiedGreaterThan(java.util.Date value) {
          addCriterion("modified", value, ConditionMode.GREATER_THEN, "modified", "java.util.Date", "String");
          return this;
      }

      public MenuCriteria andModifiedGreaterThanOrEqualTo(java.util.Date value) {
          addCriterion("modified", value, ConditionMode.GREATER_EQUAL, "modified", "java.util.Date", "String");
          return this;
      }

      public MenuCriteria andModifiedLessThan(java.util.Date value) {
          addCriterion("modified", value, ConditionMode.LESS_THEN, "modified", "java.util.Date", "String");
          return this;
      }

      public MenuCriteria andModifiedLessThanOrEqualTo(java.util.Date value) {
          addCriterion("modified", value, ConditionMode.LESS_EQUAL, "modified", "java.util.Date", "String");
          return this;
      }

      public MenuCriteria andModifiedBetween(java.util.Date value1, java.util.Date value2) {
    	  addCriterion("modified", value1, value2, ConditionMode.BETWEEN, "modified", "java.util.Date", "String");
    	  return this;
      }

      public MenuCriteria andModifiedNotBetween(java.util.Date value1, java.util.Date value2) {
          addCriterion("modified", value1, value2, ConditionMode.NOT_BETWEEN, "modified", "java.util.Date", "String");
          return this;
      }
        
      public MenuCriteria andModifiedIn(List<java.util.Date> values) {
          addCriterion("modified", values, ConditionMode.IN, "modified", "java.util.Date", "String");
          return this;
      }

      public MenuCriteria andModifiedNotIn(List<java.util.Date> values) {
          addCriterion("modified", values, ConditionMode.NOT_IN, "modified", "java.util.Date", "String");
          return this;
      }
}